//package com.starblink.guangconfig.ui.part
//
//import android.content.Context
//import com.starblink.android.basic.config.GuangConfig
//import com.starblink.android.basic.ext.toast
//import com.starblink.basic.storage.SkStorage
//import com.starblink.guangconfig.databinding.ActivityGuangUpConfigBinding
//import com.starblink.guangconfig.ui.GuangUpConfigVM
//
//object HomeDetailToastPart {
//    private var open = SkStorage.getBoolean(GuangConfig.OPEN_HOME_DETAIL_TOAST, false)
//
//
//    fun handleVM(context: Context, m: GuangUpConfigVM, vb: ActivityGuangUpConfigBinding) {
//        vb.homeDetailToast.homeDetailToastOpen.isChecked = open
//        vb.homeDetailToast.homeDetailToastOpen.setOnClickListener {
//            if (open) {
//                open = false
//                toast("已开启 需要下拉刷新生效")
//            } else {
//                open = true
//                toast("已关闭 需要下拉刷新生效")
//            }
//            vb.homeDetailToast.homeDetailToastOpen.isChecked = open
//            SkStorage.put(GuangConfig.OPEN_HOME_DETAIL_TOAST, open)
//        }
//    }
//}